package com.cskaoyan.service;

import com.cskaoyan.bean.User;
import com.cskaoyan.bo.*;

import com.cskaoyan.vo.*;
import com.cskaoyan.wx.bo.WxUserBO;
import com.cskaoyan.wx.bo.WxUserResetBO;
import com.cskaoyan.wx.vo.WxIfo;
import com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException;
import org.apache.ibatis.annotations.Select;
import org.apache.shiro.dao.DataAccessException;

import java.sql.SQLException;
import java.util.Date;
import java.util.Map;

public interface UserManagementService {
    SearchHistoryVO getSearchHistory(SearchHistoryBO searchHistoryBO);

    ReceiveAddressVO getReceiveAddress(ReceiveAddressBO receiveAddressBO);

    FootPrintVO getFootPrint(FootPrintBO footPrintBO);


    FeedbackVo query(FeedBackBO feedBackBO);

    UserCollectVO getUserCollect(UserCollectBO userCollectBO);

    UserVO getUser(UserBO userBO);

    User getUserByName(String username);

    String getPasswordByName(String username);

    void updateLoginIpAndLoginTime(String host, Date lastAccessTime, String username);

    Integer addAUser(WxUserBO wxUserBO) throws DataAccessException;

    int getUserByMobile(String phone);

    void resetPassword(WxUserResetBO wxUserResetBO);
}
